using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Jst.Domain
{
    [SugarTable("SysUserInfo", TableDescription = "用户表")]
    public partial class SysUserInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        [Display(Name = "Id")]
        [SugarColumn(ColumnDescription = "Id", IsNullable = false, IsPrimaryKey = true, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        [Display(Name = "登录账号")]
        [SugarColumn(ColumnDescription = "登录账号", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(200, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string LoginName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        [Display(Name = "登录密码")]
        [SugarColumn(ColumnDescription = "登录密码", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(200, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string LoginPWD { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [Display(Name = "真实姓名")]
        [SugarColumn(ColumnDescription = "真实姓名", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(200, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string RealName { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        [SugarColumn(ColumnDescription = "状态", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int Status { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [Display(Name = "部门")]
        [SugarColumn(ColumnDescription = "部门", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long DepartmentId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [SugarColumn(ColumnDescription = "备注", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [SugarColumn(ColumnDescription = "创建时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Display(Name = "更新时间")]
        [SugarColumn(ColumnDescription = "更新时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 关键业务修改时间
        /// </summary>
        [Display(Name = "关键业务修改时间")]
        [SugarColumn(ColumnDescription = "关键业务修改时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime CriticalModifyTime { get; set; }

        /// <summary>
        /// 最后异常时间
        /// </summary>
        [Display(Name = "最后异常时间")]
        [SugarColumn(ColumnDescription = "最后异常时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime LastErrorTime { get; set; }

        /// <summary>
        /// 错误次数
        /// </summary>
        [Display(Name = "错误次数")]
        [SugarColumn(ColumnDescription = "错误次数", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int ErrorCount { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        [Display(Name = "登录账号")]
        [SugarColumn(ColumnDescription = "登录账号", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(200, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Name { get; set; }

        /// <summary>
        /// Sex
        /// </summary>
        [Display(Name = "Sex")]
        [SugarColumn(ColumnDescription = "Sex", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int Sex { get; set; }

        /// <summary>
        /// Age
        /// </summary>
        [Display(Name = "Age")]
        [SugarColumn(ColumnDescription = "Age", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int Age { get; set; }

        /// <summary>
        /// Birth
        /// </summary>
        [Display(Name = "Birth")]
        [SugarColumn(ColumnDescription = "Birth", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime Birth { get; set; }

        /// <summary>
        /// Address
        /// </summary>
        [Display(Name = "Address")]
        [SugarColumn(ColumnDescription = "Address", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(200, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Address { get; set; }

        /// <summary>
        /// Enable
        /// </summary>
        [Display(Name = "Enable")]
        [SugarColumn(ColumnDescription = "Enable", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public bool Enable { get; set; }

        /// <summary>
        /// IsDeleted
        /// </summary>
        [Display(Name = "IsDeleted")]
        [SugarColumn(ColumnDescription = "IsDeleted", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public bool IsDeleted { get; set; }

        ///// <summary>
        ///// 租户Id
        ///// </summary>
        [Display(Name = "租户Id")]
        [SugarColumn(ColumnDescription = "租户Id", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long TenantId { get; set; }

    }
}
